<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>平面转换-径向渐变</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    .circle {
      margin: 30px;
      width: 320px;
      height: 320px;
      border-radius: 50%;
      /* 径向渐变 */
      background-image: radial-gradient(150px 100px at center center, #f00, #00f);
    }

    button {
      margin-left: .2667rem;
      width: 160px;
      height: 40px;
      border: 0;
      border-radius: 4px;
      cursor: pointer;
      background-color: #0fbb0f;
      color: #fff;
      /* 添加高光 */
      background-image: radial-gradient(100px at 50px 50px, rgba(255, 255, 255, .5), transparent);
    }
  </style>
</head>

<body>
  <div class="circle"></div>
  <button>点我一下</button>
</body>

</html>